package CasinoMDS;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.EventQueue;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLayeredPane;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;

public class Reactivar_cuenta extends Ventana_recuperacion {

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Reactivar_cuenta frame = new Reactivar_cuenta();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Reactivar_cuenta() {
		setContentPane(contentPane);

		final JButton btnConfirmar = new JButton("");
		btnConfirmar.setEnabled(false);
		btnConfirmar.setBounds(192, 247, 112, 23);
		btnConfirmar.setText("Confirmar");
		layeredPane.add(btnConfirmar);

		JLabel lblReactivarCuenta = new JLabel("Reactivar cuenta");
		lblReactivarCuenta.setForeground(Color.WHITE);
		lblReactivarCuenta.setFont(new Font("Tahoma", Font.BOLD, 25));
		lblReactivarCuenta.setBounds(53, 27, 296, 19);
		layeredPane.add(lblReactivarCuenta);

		Respuesta.addKeyListener(new KeyAdapter() {
			@Override
			public void keyReleased(KeyEvent e) {
				if (Respuesta.getText().length() > 0)
					btnConfirmar.setEnabled(true);
				else
					btnConfirmar.setEnabled(false);
			}
		});

		layeredPane.setComponentZOrder(lblImg, 12);

	}
}
